import java.util.Objects;

public class Dog {
    String name;
    int age;

    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public boolean equals(Object obj) {
        Dog tmp = (Dog)obj;
        return tmp.name.equals(this.name)
                && tmp.age == this.age;
    }
}
